from Cartesian
Creates a PolarCoordinates instance from Cartesian coordinates.
Return
A PolarCoordinates instance representing the same point in polar coordinates.
Parameters
x
The x-coordinate in Cartesian coordinates.
y
The y-coordinate in Cartesian coordinates.
Creates a PolarCoordinates instance from Cartesian coordinates.
Return
A PolarCoordinates instance representing the same point in polar coordinates.
Parameters
v
The Cartesian coordinates as a Vec2 instance.